package levels
{
	import org.flixel.*;
	
	import states.GameState;
	import enemies.*;
	import interactions.*;
	import items.*;
	import treasures.*;
	
	/**
	 * ...
	 * @author JAC
	 */
	public class Level_2 extends GameState
	{
		override public function create():void
		{
			super.create();
			
			_maze.load(MazeData.level_2);
			Player.spawnAt(6, 12);
			
			Tracker.lives = 0;
			Tracker.mapScore = 1000;
			Tracker.minScore = 2;
			
			var robber_1:Robber = new Robber(10, 20);
			robber_1.setBaseSpeed(robber_1.speed - 10);
			
			var robber_2:Robber = new Robber(22, 0);
			robber_2.setBaseSpeed(robber_2.speed);
			
			var robber_3:Robber = new Robber(28, 18);
			robber_3.setBaseSpeed(robber_1.speed);
			
			addEntity(robber_1);
			addEntity(robber_2);
			addEntity(robber_3);
			
			addEntity(new LootBag(10, 12));
			addEntity(new LootBag(8, 6));
			addEntity(new LootBag(16, 12));
			
			addEntity(new SpeedBooster(8, 12));
			
			gameStart();
		}
	}
}